{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\Matthew\OneDrive for Business\FPA\replication\final\revo_aggression_log.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}31 May 2022, 18:04:00
{txt}
{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. net from https://gking.harvard.edu/clarify
{s6hlp}
.-
https://gking.harvard.edu/clarify/
^Clarify: Software to Interpret and Present Statistical Results^
.-


Michael Tomz         Jason Wittenberg          Gary King
Stanford Univ.   Univ. of Wisconsin, Madison   Harvard Univ.


To install Clarify, type ^net install clarify^
To download documentation to your working directory, type ^net get clarify^
For a brief description of Clarify, type ^net describe clarify^
{smcl}

PACKAGES you could -{hilite:net describe}-:
{s6hlp}
    @net:describe clarify!clarify@           Software to Interpret and Present Statistical Results
{smcl}
{.-}

{com}. net install clarify
checking {hilite:clarify} consistency and verifying not already installed...
all files already exist and are up to date.
{txt}
{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. use "C:\Users\Matthew\OneDrive for Business\FPA\replication\final\revo_aggression_main.dta", clear
{txt}
{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. total initmid, over (external)
{res}
{txt}Total estimation{col 35}Number of obs{col 51}= {res}       837

            {txt}0: external = {res}0
            {txt}1: external = {res}1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 1}        Over{col 14}{c |}      Total{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{res}initmid      {txt}{c |}
{space 11}0 {c |}{col 14}{res}{space 2}      169{col 26}{space 2} 15.89873{col 37}{space 5} 137.7939{col 51}{space 3} 200.2061
{txt}{space 11}1 {c |}{col 14}{res}{space 2}      244{col 26}{space 2} 31.90971{col 37}{space 5} 181.3674{col 51}{space 3} 306.6326
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. ttest initmid, by (external)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}    522{col 22} .3237548{col 34} .0304573{col 46} .6958686{col 58} .2639205{col 70} .3835891
       {txt}1 {c |}{res}{col 12}    315{col 22} .7746032{col 34} .1013007{col 46} 1.797908{col 58} .5752893{col 70}  .973917
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    837{col 22} .4934289{col 34} .0432223{col 46} 1.250461{col 58}  .408592{col 70} .5782658
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-.4508484{col 34} .0878953{col 58}-.6233701{col 70}-.2783267
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -5.1294
{txt}Ho: diff = 0                                     degrees of freedom = {res}     835

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0000         {txt}Pr(|T| > |t|) = {res}0.0000          {txt}Pr(T > t) = {res}1.0000
{txt}
{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. count if external == 1
  {res}315
{txt}
{com}. count if external == 0
  {res}522
{txt}
{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. estsimp nbreg initmid external borders cap milex majpow export,cluster(ccode)

{txt}Fitting Poisson model:

Iteration 0:{col 16}log pseudolikelihood = {res}-1055.1595{txt}  
Iteration 1:{col 16}log pseudolikelihood = {res}-782.97537{txt}  
Iteration 2:{col 16}log pseudolikelihood = {res}-697.97238{txt}  
Iteration 3:{col 16}log pseudolikelihood = {res}-696.02943{txt}  
Iteration 4:{col 16}log pseudolikelihood = {res}-696.00728{txt}  
Iteration 5:{col 16}log pseudolikelihood = {res}-696.00727{txt}  
{res}
{txt}Fitting constant-only model:

Iteration 0:{col 16}log pseudolikelihood = {res}-740.71522{txt}  
Iteration 1:{col 16}log pseudolikelihood = {res}-734.07644{txt}  
Iteration 2:{col 16}log pseudolikelihood = {res}-730.57239{txt}  
Iteration 3:{col 16}log pseudolikelihood = {res}-730.56903{txt}  
Iteration 4:{col 16}log pseudolikelihood = {res}-730.56903{txt}  
{res}
{txt}Fitting full model:

Iteration 0:{col 16}log pseudolikelihood = {res}-676.21373{txt}  
Iteration 1:{col 16}log pseudolikelihood = {res}-664.70109{txt}  
Iteration 2:{col 16}log pseudolikelihood = {res}-652.43281{txt}  
Iteration 3:{col 16}log pseudolikelihood = {res}-650.97945{txt}  
Iteration 4:{col 16}log pseudolikelihood = {res}-650.91264{txt}  
Iteration 5:{col 16}log pseudolikelihood = {res}-650.91258{txt}  
{res}
{txt}Negative binomial regression{col 49}Number of obs{col 67}= {res}       781
{txt}{col 49}Wald chi2({res}6{txt}){col 67}= {res}    165.19
{txt}{col 1}Dispersion{col 22}= {res}mean{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-650.91258{txt}{col 49}Pseudo R2{col 67}= {res}    0.1090

{txt}{ralign 78:(Std. Err. adjusted for {res:56} clusters in ccode)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     initmid{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}external {c |}{col 14}{res}{space 2} .6806325{col 26}{space 2} .2847417{col 37}{space 1}    2.39{col 46}{space 3}0.017{col 54}{space 4} .1225491{col 67}{space 3} 1.238716
{txt}{space 5}borders {c |}{col 14}{res}{space 2} .2192293{col 26}{space 2} .0667905{col 37}{space 1}    3.28{col 46}{space 3}0.001{col 54}{space 4} .0883223{col 67}{space 3} .3501363
{txt}{space 9}cap {c |}{col 14}{res}{space 2} 5.864414{col 26}{space 2} 13.73454{col 37}{space 1}    0.43{col 46}{space 3}0.669{col 54}{space 4}-21.05479{col 67}{space 3} 32.78362
{txt}{space 7}milex {c |}{col 14}{res}{space 2}-3.39e-09{col 26}{space 2} 3.66e-08{col 37}{space 1}   -0.09{col 46}{space 3}0.926{col 54}{space 4}-7.51e-08{col 67}{space 3} 6.83e-08
{txt}{space 6}majpow {c |}{col 14}{res}{space 2}-.8261766{col 26}{space 2} 1.848076{col 37}{space 1}   -0.45{col 46}{space 3}0.655{col 54}{space 4}-4.448339{col 67}{space 3} 2.795986
{txt}{space 5}exports {c |}{col 14}{res}{space 2}-2.76e-06{col 26}{space 2} .0000248{col 37}{space 1}   -0.11{col 46}{space 3}0.911{col 54}{space 4}-.0000514{col 67}{space 3} .0000459
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-2.693473{col 26}{space 2} .4657046{col 37}{space 1}   -5.78{col 46}{space 3}0.000{col 54}{space 4}-3.606237{col 67}{space 3}-1.780709
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
    /lnalpha {c |}{col 14}{res}{space 2}-.2273075{col 26}{space 2} .4889613{col 54}{space 4}-1.185654{col 67}{space 3}  .731039
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
       alpha {c |}{col 14}{res}{space 2} .7966757{col 26}{space 2} .3895436{col 54}{space 4} .3055463{col 67}{space 3} 2.077238
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{res}Simulating main parameters.  Please wait....
% of simulations completed: 12% 25% 37% 50% 62% 75% 87% 100% 

Number of simulations  : 1000
Names of new variables : b1 b2 b3 b4 b5 b6 b7 b8
{txt}
{com}. estout
{res}
{txt}{hline 25}
{txt}                        .
{txt}                        b
{txt}{hline 25}
{res}initmid                  {txt}
{txt}external    {res}     .6806325{txt}
{txt}borders     {res}     .2192293{txt}
{txt}cap         {res}     5.864414{txt}
{txt}milex       {res}    -3.39e-09{txt}
{txt}majpow      {res}    -.8261766{txt}
{txt}exports     {res}    -2.76e-06{txt}
{txt}_cons       {res}    -2.693473{txt}
{txt}{hline 25}
{res}lnalpha                  {txt}
{txt}_cons       {res}    -.2273075{txt}
{txt}{hline 25}

{com}. drop b1
{txt}
{com}. drop b2
{txt}
{com}. drop b3
{txt}
{com}. drop b4
{txt}
{com}. drop b5
{txt}
{com}. drop b6
{txt}
{com}. drop b7
{txt}
{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. estsimp logit initmid_binary external borders cap milex majpow exports,cluster(ccode)

{txt}Iteration 0:   log pseudolikelihood = {res}-476.83056
{txt}Iteration 1:   log pseudolikelihood = {res}-430.23195
{txt}Iteration 2:   log pseudolikelihood = {res}-429.52963
{txt}Iteration 3:   log pseudolikelihood = {res}-429.52776
{txt}Iteration 4:   log pseudolikelihood = {res}-429.52776

{txt}Logistic regression                               Number of obs   = {res}       781
                                                  {txt}{help j_robustsingular:Wald chi2(5)}    = {res}         .
                                                  {txt}Prob > chi2     = {res}         .
{txt}Log pseudolikelihood = {res}-429.52776                 {txt}Pseudo R2       = {res}    0.0992

                                 {txt}(Std. Err. adjusted for {res}56{txt} clusters in ccode)
{hline 13}{c TT}{hline 64}
             {c |}               Robust
initmid_bi~y {c |}      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
{hline 13}{c +}{hline 64}
    external {c |}  {res} .5455635   .3491902     1.56   0.118    -.1388367    1.229964
     {txt}borders {c |}  {res} .2134989    .075138     2.84   0.004     .0662312    .3607667
         {txt}cap {c |}  {res} .6955984    8.89812     0.08   0.938     -16.7444    18.13559
       {txt}milex {c |}  {res}-3.54e-08   2.79e-08    -1.27   0.205    -9.00e-08    1.93e-08
      {txt}majpow {c |}  {res} 1.343501   1.312767     1.02   0.306    -1.229475    3.916478
     {txt}exports {c |}  {res}  .000016   .0000339     0.47   0.636    -.0000503    .0000824
       {txt}_cons {c |}  {res}-2.509609   .4689598    -5.35   0.000    -3.428753   -1.590464
{txt}{hline 13}{c BT}{hline 64}

{res}Simulating main parameters.  Please wait....
% of simulations completed: 14% 28% 42% 57% 71% 85% 100% 

Number of simulations  : 1000
Names of new variables : b1 b2 b3 b4 b5 b6 b7
{txt}
{com}. estout
{res}
{txt}{hline 25}
{txt}                        .
{txt}                        b
{txt}{hline 25}
{txt}external    {res}     .5455635{txt}
{txt}borders     {res}     .2134989{txt}
{txt}cap         {res}     .6955984{txt}
{txt}milex       {res}    -3.54e-08{txt}
{txt}majpow      {res}     1.343501{txt}
{txt}exports     {res}      .000016{txt}
{txt}_cons       {res}    -2.509609{txt}
{txt}{hline 25}

{com}. drop b1
{txt}
{com}. drop b2
{txt}
{com}. drop b3
{txt}
{com}. drop b4
{txt}
{com}. drop b5
{txt}
{com}. drop b6
{txt}
{com}. drop b7
{txt}
{com}. drop b8
{txt}
{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. estsimp nbreg initmid external borders cap milex majpow export,cluster(ccode)

{txt}Fitting Poisson model:

Iteration 0:{col 16}log pseudolikelihood = {res}-1055.1595{txt}  
Iteration 1:{col 16}log pseudolikelihood = {res}-782.97537{txt}  
Iteration 2:{col 16}log pseudolikelihood = {res}-697.97238{txt}  
Iteration 3:{col 16}log pseudolikelihood = {res}-696.02943{txt}  
Iteration 4:{col 16}log pseudolikelihood = {res}-696.00728{txt}  
Iteration 5:{col 16}log pseudolikelihood = {res}-696.00727{txt}  
{res}
{txt}Fitting constant-only model:

Iteration 0:{col 16}log pseudolikelihood = {res}-740.71522{txt}  
Iteration 1:{col 16}log pseudolikelihood = {res}-734.07644{txt}  
Iteration 2:{col 16}log pseudolikelihood = {res}-730.57239{txt}  
Iteration 3:{col 16}log pseudolikelihood = {res}-730.56903{txt}  
Iteration 4:{col 16}log pseudolikelihood = {res}-730.56903{txt}  
{res}
{txt}Fitting full model:

Iteration 0:{col 16}log pseudolikelihood = {res}-676.21373{txt}  
Iteration 1:{col 16}log pseudolikelihood = {res}-664.70109{txt}  
Iteration 2:{col 16}log pseudolikelihood = {res}-652.43281{txt}  
Iteration 3:{col 16}log pseudolikelihood = {res}-650.97945{txt}  
Iteration 4:{col 16}log pseudolikelihood = {res}-650.91264{txt}  
Iteration 5:{col 16}log pseudolikelihood = {res}-650.91258{txt}  
{res}
{txt}Negative binomial regression{col 49}Number of obs{col 67}= {res}       781
{txt}{col 49}Wald chi2({res}6{txt}){col 67}= {res}    165.19
{txt}{col 1}Dispersion{col 22}= {res}mean{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-650.91258{txt}{col 49}Pseudo R2{col 67}= {res}    0.1090

{txt}{ralign 78:(Std. Err. adjusted for {res:56} clusters in ccode)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     initmid{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}external {c |}{col 14}{res}{space 2} .6806325{col 26}{space 2} .2847417{col 37}{space 1}    2.39{col 46}{space 3}0.017{col 54}{space 4} .1225491{col 67}{space 3} 1.238716
{txt}{space 5}borders {c |}{col 14}{res}{space 2} .2192293{col 26}{space 2} .0667905{col 37}{space 1}    3.28{col 46}{space 3}0.001{col 54}{space 4} .0883223{col 67}{space 3} .3501363
{txt}{space 9}cap {c |}{col 14}{res}{space 2} 5.864414{col 26}{space 2} 13.73454{col 37}{space 1}    0.43{col 46}{space 3}0.669{col 54}{space 4}-21.05479{col 67}{space 3} 32.78362
{txt}{space 7}milex {c |}{col 14}{res}{space 2}-3.39e-09{col 26}{space 2} 3.66e-08{col 37}{space 1}   -0.09{col 46}{space 3}0.926{col 54}{space 4}-7.51e-08{col 67}{space 3} 6.83e-08
{txt}{space 6}majpow {c |}{col 14}{res}{space 2}-.8261766{col 26}{space 2} 1.848076{col 37}{space 1}   -0.45{col 46}{space 3}0.655{col 54}{space 4}-4.448339{col 67}{space 3} 2.795986
{txt}{space 5}exports {c |}{col 14}{res}{space 2}-2.76e-06{col 26}{space 2} .0000248{col 37}{space 1}   -0.11{col 46}{space 3}0.911{col 54}{space 4}-.0000514{col 67}{space 3} .0000459
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-2.693473{col 26}{space 2} .4657046{col 37}{space 1}   -5.78{col 46}{space 3}0.000{col 54}{space 4}-3.606237{col 67}{space 3}-1.780709
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
    /lnalpha {c |}{col 14}{res}{space 2}-.2273075{col 26}{space 2} .4889613{col 54}{space 4}-1.185654{col 67}{space 3}  .731039
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
       alpha {c |}{col 14}{res}{space 2} .7966757{col 26}{space 2} .3895436{col 54}{space 4} .3055463{col 67}{space 3} 2.077238
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{res}Simulating main parameters.  Please wait....
% of simulations completed: 12% 25% 37% 50% 62% 75% 87% 100% 

Number of simulations  : 1000
Names of new variables : b1 b2 b3 b4 b5 b6 b7 b8
{txt}
{com}. setx external 1
{txt}
{com}. simqi

{txt}      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
                E(initmid) |  {res} .1484378     .0764755     .0497592    .3329444
{txt}
{com}. setx external 0
{txt}
{com}. simqi

{txt}      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
                E(initmid) |  {res} .0753698     .0362973     .0267654    .1665407
{txt}
{com}. drop b1
{txt}
{com}. drop b2
{txt}
{com}. drop b3
{txt}
{com}. drop b4
{txt}
{com}. drop b5
{txt}
{com}. drop b6
{txt}
{com}. drop b7
{txt}
{com}. drop b8
{txt}
{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. save "C:\Users\Matthew\OneDrive for Business\FPA\replication\final\revo_aggression_main.dta", replace
{txt}file C:\Users\Matthew\OneDrive for Business\FPA\replication\final\revo_aggression_main.dta saved

{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. use "C:\Users\Matthew\OneDrive for Business\FPA\replication\final\revo_aggression_survival.dta", clear
{txt}
{com}. stset time1, failure(eventmid==1) scale(1)

     {txt}failure event:  {res}eventmid == 1
{txt}obs. time interval:  {res}(0, time1]
{txt} exit on or before:  {res}failure

{txt}{hline 78}
{res}         76{txt}  total observations
{res}          0{txt}  exclusions
{hline 78}
{res}         76{txt}  observations remaining, representing
{res}         47{txt}  failures in single-record/single-failure data
{res}        356{txt}  total analysis time at risk and under observation
                                                at risk from t = {res}        0
                                     {txt}earliest observed entry t = {res}        0
                                          {txt}last observed exit t = {res}       20
{txt}
{com}. stsum, by(revotype)

         {txt}failure _d:  {res}eventmid == 1
   {txt}analysis time _t:  {res}time1

{txt}{col 10}{c |}{col 26}incidence{col 42}no. of{col 52}{c LT}{hline 6} Survival time {hline 5}{c RT}
revotype{col 10}{c |} time at risk{col 29}rate{col 41}subjects{col 57}25%{col 67}50%{col 77}75%
{hline 9}{c +}{hline 69}
External {c |} {res}          91   .1978022{col 40}       24          1         2         5
{txt}Internal {c |} {res}         265    .109434{col 40}       52          2         7        14
{txt}{hline 9}{c +}{hline 69}
   total {c |} {res}         356   .1320225{col 40}       76          2         5        13
{txt}
{com}. sts graph, by(revotype)

         {txt}failure _d:  {res}eventmid == 1
   {txt}analysis time _t:  {res}time1
{txt}
{com}. sts test external, logrank

         {txt}failure _d:  {res}eventmid == 1
   {txt}analysis time _t:  {res}time1


{txt}{title:Log-rank test for equality of survivor functions}

{col 9} {c |}   Events         Events
external {c |}  observed       expected
{hline 9}{c +}{hline 25}
0        {c |}{res}        29          34.65
{txt}1        {c |}{res}        18          12.35
{txt}{hline 9}{c +}{hline 25}
Total    {c |}{res}        47          47.00

               {txt}chi2(1) = {res}      4.30
               {txt}Pr>chi2 = {res}    0.0381
{txt}
{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. stset time2, failure(eventouster==1) scale(1)

     {txt}failure event:  {res}eventouster == 1
{txt}obs. time interval:  {res}(0, time2]
{txt} exit on or before:  {res}failure

{txt}{hline 78}
{res}         76{txt}  total observations
{res}          0{txt}  exclusions
{hline 78}
{res}         76{txt}  observations remaining, representing
{res}         76{txt}  failures in single-record/single-failure data
{res}        837{txt}  total analysis time at risk and under observation
                                                at risk from t = {res}        0
                                     {txt}earliest observed entry t = {res}        0
                                          {txt}last observed exit t = {res}       42
{txt}
{com}. stsum, by(revotype)

         {txt}failure _d:  {res}eventouster == 1
   {txt}analysis time _t:  {res}time2

{txt}{col 10}{c |}{col 26}incidence{col 42}no. of{col 52}{c LT}{hline 6} Survival time {hline 5}{c RT}
revotype{col 10}{c |} time at risk{col 29}rate{col 41}subjects{col 57}25%{col 67}50%{col 77}75%
{hline 9}{c +}{hline 69}
External {c |} {res}         315   .0761905{col 40}       24          5        10        19
{txt}Internal {c |} {res}         522   .0996169{col 40}       52          5         8        13
{txt}{hline 9}{c +}{hline 69}
   total {c |} {res}         837   .0908005{col 40}       76          5         9        14
{txt}
{com}. sts graph, by(revotype)

         {txt}failure _d:  {res}eventouster == 1
   {txt}analysis time _t:  {res}time2
{txt}
{com}. sts test external, logrank

         {txt}failure _d:  {res}eventouster == 1
   {txt}analysis time _t:  {res}time2


{txt}{title:Log-rank test for equality of survivor functions}

{col 9} {c |}   Events         Events
external {c |}  observed       expected
{hline 9}{c +}{hline 25}
0        {c |}{res}        52          46.52
{txt}1        {c |}{res}        24          29.48
{txt}{hline 9}{c +}{hline 25}
Total    {c |}{res}        76          76.00

               {txt}chi2(1) = {res}      2.03
               {txt}Pr>chi2 = {res}    0.1540
{txt}
{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. ttest time2, by (external)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}     52{col 22} 10.03846{col 34}  .941326{col 46} 6.787998{col 58} 8.148671{col 70} 11.92825
       {txt}1 {c |}{res}{col 12}     24{col 22}   13.125{col 34}  2.27726{col 46} 11.15625{col 58} 8.414128{col 70} 17.83587
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}     76{col 22} 11.01316{col 34} .9705295{col 46}  8.46088{col 58} 9.079764{col 70} 12.94655
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-3.086538{col 34} 2.071136{col 58}-7.213368{col 70} 1.040291
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -1.4903
{txt}Ho: diff = 0                                     degrees of freedom = {res}      74

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0702         {txt}Pr(|T| > |t|) = {res}0.1404          {txt}Pr(T > t) = {res}0.9298
{txt}
{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. save "C:\Users\Matthew\OneDrive for Business\FPA\replication\final\revo_aggression_survival.dta", replace
{txt}file C:\Users\Matthew\OneDrive for Business\FPA\replication\final\revo_aggression_survival.dta saved

{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. use "C:\Users\Matthew\OneDrive for Business\FPA\replication\final\revo_aggression_main.dta", clear
{txt}
{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. tabulate external personalist_jlw, chi2 expected
{txt}
{c TLC}{hline 20}{c TRC}
{c |} Key{col 22}{c |}
{c LT}{hline 20}{c RT}
{c |}{space 5}{it:frequency}{col 22}{c |}
{c |}{space 1}{it:expected frequency}{col 22}{c |}
{c BLC}{hline 20}{c BRC}

           {c |} Personalist indicator
           {c |}      - JLW 2012
  external {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       188        242 {txt}{c |}{res}       430 
           {txt}{c |}{res}     128.0      302.0 {txt}{c |}{res}     430.0 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}        18        244 {txt}{c |}{res}       262 
           {txt}{c |}{res}      78.0      184.0 {txt}{c |}{res}     262.0 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       206        486 {txt}{c |}{res}       692 
           {txt}{c |}{res}     206.0      486.0 {txt}{c |}{res}     692.0 

{txt}          Pearson chi2({res}1{txt}) = {res}105.7460  {txt} Pr = {res}0.000
{txt}
{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. tabulate external rebel, chi2 expected
{txt}
{c TLC}{hline 20}{c TRC}
{c |} Key{col 22}{c |}
{c LT}{hline 20}{c RT}
{c |}{space 5}{it:frequency}{col 22}{c |}
{c |}{space 1}{it:expected frequency}{col 22}{c |}
{c BLC}{hline 20}{c BRC}

           {c |}      Prior Rebel
           {c |}  Participation, 1 =
           {c |}      Yes, 0 = No
  external {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        64        269 {txt}{c |}{res}       333 
           {txt}{c |}{res}      66.4      266.6 {txt}{c |}{res}     333.0 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}        22         76 {txt}{c |}{res}        98 
           {txt}{c |}{res}      19.6       78.4 {txt}{c |}{res}      98.0 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}        86        345 {txt}{c |}{res}       431 
           {txt}{c |}{res}      86.0      345.0 {txt}{c |}{res}     431.0 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.4945  {txt} Pr = {res}0.482
{txt}
{com}. 
{txt}end of do-file

{com}. do "C:\Users\Matthew\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. save "C:\Users\Matthew\OneDrive for Business\FPA\replication\final\revo_aggression_main.dta", replace
{txt}file C:\Users\Matthew\OneDrive for Business\FPA\replication\final\revo_aggression_main.dta saved

{com}. 
{txt}end of do-file

{com}. exit, clear
